function page_nav(frm,num){
		// console.log(num);
		// console.log(document.forms);
		frm.page.value = num;
		frm.submit();
}

function select_by_type(frm,class_id,num){
	frm.classId.value = class_id;
	frm.page.value = num;
	frm.submit();
}

function sort_by_time(frm,num){
	frm.sort.value = "time";
	frm.page.value = num;
	frm.submit();
}

function sort_by_num(frm,num){
	frm.sort.value = "people_num";
	frm.page.value = num;
	frm.submit();
}

function select_by_kw(frm,num){
	console.log($("#keyword").val());
	frm.keyword.value = $("#keyword").val();
	frm.page.value = num;
	frm.submit();
}

function sort_by_price(frm,num){
	frm.sort.value = "price";
	frm.page.value = num;
	frm.submit();
}

function jump_to(frm,num){
    //alert(num);
	//验证用户的输入
	var regexp=/^[1-9]\d*$/;
	var totalPageCount = document.getElementById("totalPageCount").value;
	//alert(totalPageCount);
	if(!regexp.test(num)){
		alert("请输入大于0的正整数！");
		return false;
	}else if((num-totalPageCount) > 0){
		alert("请输入小于总页数的页码");
		return false;
	}else{
		page_nav(frm,num);
	}
}